package com.eryos.gwt.estate.client.mvp;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Custom abstract class for AsyncCallback used to handle all RPC Exception in the same way.
 * 
 * @author combeol
 * @version $Revision$
 * 
 * @param <T>
 *            The type of the return value that was declared in the synchronous version of the method. If the return
 *            type is a primitive, use the boxed version of that primitive (for example, an <code>int</code> return
 *            type becomes an {@link Integer} type argument, and a <code>void</code> return type becomes a
 *            {@link Void} type argument, which is always <code>null</code>).
 */
public abstract class CustomAsyncCallback<T> implements AsyncCallback<T> {

    @Override
    public void onFailure(final Throwable caught) {
        // TODO : Handle call back exceptions (redirect to Error page, log information, etc.)
    }

}
